package com.ssyt.yt1.day14;

import java.math.BigInteger;

/**
 * 大数运算
 * 
 * @author Administrator
 *
 */
public class BigIntegerDemo {

	public static void main(String[] args) {
		// long long1 = Long.MAX_VALUE;
		// System.out.println(long1 + 1);

		BigInteger number1 = new BigInteger(Long.MAX_VALUE + "");
		BigInteger number2 = new BigInteger(Long.MAX_VALUE + "");
		System.out.println(number1.add(number2));
		System.out.println(number1.subtract(number2));
		System.out.println(number1.multiply(number2));
		System.out.println(number1.divide(number2));
	}
}
